<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
    <div th:fragment="add">
        <div id="modal-add-form" class="modal fade" aria-hidden="true">
            <div class="modal-dialog" style="width: 800px;">
                <div class="modal-content">
                    <div class="modal-body">
                        <div class="row">
                            <h3 class="m-t-none m-b">配置表添加</h3>
                            <div class="col-sm-12">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-content">
                                        <form id="aform" method="post" class="form-horizontal" action="add"
                                              onsubmit="return checkAdd()">
                                            <div class="row">
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-sm-4 control-label">名称*</label>
                                                        <div class="col-sm-8">
                                                            <input class="form-control" name="name"
                                                                   required type="text" maxlength="30"/>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-sm-4 control-label">编码*
                                                        </label>
                                                        <div class="col-sm-8">
                                                            <input class="form-control" name="code"
                                                                   required type="text" maxlength="100"/>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-sm-4 control-label">类型
                                                        </label>
                                                        <div class="col-sm-8">
                                                            <select class="form-control" style="width: 100px;" id="type" name="type" onchange="">
                                                                <option value="">一级分类</option>
                                                                <option th:each="c:${types}" th:value="${c.type}" th:text="${c.typename}"></option>
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="col-sm-4 control-label">备注</label>
                                                        <div class="col-sm-8">
                                                            <input class="form-control" name="remark" type="text" maxlength="25"/>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <div class="col-sm-4 col-sm-offset-2">
                                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                                    <button data-toggle="modal" type="button" class="btn btn-white"
                                                            href="#modal-add-form">取消</button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>